<include file="header" />
 <script language="javascript">
    function fleshVerify(){
		var timeNow = new Date().getTime();
		document.getElementById('verifyImage').src ='__URL__/verify/'+timeNow;

    }
    function chksubmit(){
		if ($('#readclause:checked').val() != "chk") {
			alert("请阅读并确认同意协议");
			return false;
		}
                else if ($('#pwd').val()!=$('#repwd').val()) {
                    alert("请确认输入相同的密码！");
                    return false;
		}
                else if(!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test($("#email").val())){
			alert("请输入正确的邮箱地址！");
			return false;
		}
		else if($('#name').val()== ""){
			alert("请输入真实姓名！");
			return false;
		}
		else {
			$('#regForm').submit();
		}
    }
</script>

<div class="container">
        <div class="title_link">
            <a href="#">首页</a>&gt;<a href="#">登陆</a>
        </div>
        <div class="inside_box">
            <div class="radius1"></div>
            <div class="radius2"></div>
            <div class="radius3"></div>
            <div class="radius4"></div>
            <form action="__APP__/Index/register" method="post" id="regForm" name="regForm">
            <div class="inside_content png">
                <div class="login_title">
                    <div class="login_title_left png"></div>
                    <div style="font-size:14px;" class="login_title_bg png">
                        上海好家酒店公寓欢迎您!注册成功您即可：咨询房间信息!预定房间，同时可享受积分优惠!
                    </div>
                    <div class="login_title_right png"></div>
                </div>
                <div class="register_left">
                    <div class="register_prompt png">
                        请仔细填写如下信息，确保成功注册
                    </div>
                    <div style="margin-top:12px; width:420px;" class="login_name">
                        <i class="fl">用户名：</i>
                        <div style="width:240px;" class="login_name_box1"><input type="text" style="width:240px;" class="login_input fl" id="loginname" name="account"></div>
                         <b class="gary">建议e-mail</b>
                     </div>
                     <div style="margin-top:12px; width:420px;" class="login_name">
                        <i class="fl">密码：</i>
                        <div style="width:240px;" class="login_name_box1"><input type="password" style="width:240px;" class="login_input fl" id="pwd" name="password"></div>
                         <b class="gary"></b>
                     </div>
                     <div style="margin-top:12px; width:420px;" class="login_name">
                        <i class="fl">确认密码：</i>
                        <div style="width:240px;" class="login_name_box1"><input type="password" style="width:240px;" class="login_input fl" style="ime-mode: disabled;" maxlength="16" id="repwd" name="repassword"></div>
                         <b class="gary"></b>
                     </div>
                     <div style="margin-top:12px; width:420px;" class="login_name">
                        <i class="fl">真实姓名：</i>
                        <div style="width:240px;" class="login_name_box1"><input type="text" style="width:240px;" class="login_input fl" id="name" name="name" ></div>
                         <b class="gary"></b>
                     </div>
                     <div style="margin-top:12px; width:420px;" class="login_name">
                        <i class="fl">E-mail：</i>
                        <div style="width:240px;" class="login_name_box1"><input type="text" style="width:240px;" class="login_input fl" id="email" name="email" >
                        <input type="hidden" name="refer" value="okhome.cn">
                        </div>
                         <b class="gary"></b>
                     </div>
                     <div style="margin-top:12px; width:420px;" class="login_name">
                        <i class="fl">手机号码：</i>
                        <div style="width:240px;" class="login_name_box1"><input type="text" style="width:240px;" class="login_input fl" id="mobile" name="mobile" ></div>
                         <b class="gary"></b>
                     </div>
                     <div style="margin-top:12px; width:420px;" class="login_name">
                        <i class="fl">验证码：</i>
                        <div style="width:92px; float:left; display:inline;" class="login_name_box"><input type="text" style="width:90px; float:left;" class="login_input fl" name="verify" id="verify"></div>
                        <img id="verifyImage" class="yzm" title="点击更换验证码" src="__URL__/verify" name="verifyImage" onclick="fleshVerify();return false;" />
                        <span style="padding-top:2px;" class="changepic">看不清，换一张</span>
                     </div>
                </div>
                <div class="register_right">
                    <div style="margin-bottom:10px;" class="login_box">
                        <div class="login_left png"></div>
                        <div class="login_bg png">
                            <div class="scroll_y">
                                <include file="policy" />
                            </div>
                        </div>
                        <div class="login_right png"></div>
                    </div>
                    <div class="agree"><input type="checkbox" class="check_type" value="chk" name="readclause" id="readclause">我已经阅读并接受服务协议</div>
                </div>
                <div class="clear">
                </div>
                <div class="register_btn">
                    <input type="submit" style="margin-top:20px;" onclick="chksubmit();return false;" value="免费注册" class="red_btn">
                </div>
            </div>
        </form>
            <div class="radius4"></div>
            <div class="radius3"></div>
            <div class="radius2"></div>
            <div class="radius1"></div>
        </div>
    </div>
<include file="footer" />